package edu.whut.mall.admin.service;

import edu.whut.mall.admin.domain.GroupBuyOrderSearchParams;
import edu.whut.mall.admin.vo.GroupBuyOrderDetailVo;
import edu.whut.mall.admin.vo.GroupBuyOrderVo;
import edu.whut.mall.common.api.CommonPage;


/**
 * @ClassName IGroupBuyOrderService
 * @Description 团购订单服务
 * @Author lvfanbing
 * @Date 2020-11-09 17:00
 * @Version 1.0
 */
public interface IGroupBuyOrderService {

    /**
     * @Description 根据条件获取订单列表
     * @param groupBuyOrderSearchParams
     * @param pageNum
     * @param size
     * @return
     * @Author lvfanbing
     * @Date 2020/11/9 17:02
     */
    CommonPage<GroupBuyOrderVo> listGroupBuyOrderByCondition(GroupBuyOrderSearchParams groupBuyOrderSearchParams, Integer pageNum, Integer size);

    /**
     * @Description 根据团购订单id获取订单详情
     * @param groupBuyOrderId
     * @return
     * @Author lvfanbing
     * @Date 2020/11/9 19:30
     */
    GroupBuyOrderDetailVo getGroupBuyOrderDetailByGroupBuyOrderId(Long groupBuyOrderId);

    /**
     * @Description 团购订单发货
     * @param orderId
     * @param logisticsNumber
     * @param logisticsPlatform
     * @return
     * @Author lvfanbing
     * @Date 2020/11/10 21:07
     */
    Integer groupBuyOrderConsign(Long orderId, Integer logisticsPlatform, String logisticsNumber);

    /**
     * @Description 删除一个订单
     * @param orderId
     * @return
     * @Author lvfanbing
     * @Date 2020/11/10 21:19
     */
    Integer deleteOneGroupBuyOrder(Long orderId);
}
